<h1>Listing members</h1>

<table border="1">
  <tr>
    <th>Employee</th>
    <th>Nick Name</th>
    <th>Name</th>
    <th>Contact number</th>
    <th>Email</th>
  </tr>

  <% @members.each do |member| %>
      <tr>
        <td><%= h member.employee_id %></td>
        <td><%= h member.nickname %></td>
        <td><%= h member.name %></td>
        <td><%= h member.contact_number %></td>
        <td><%= h member.email %></td>
        <td><%= link_to 'Show', member %></td>
        <td><%= link_to 'Edit', edit_member_path(member) %></td>
        <td><%= link_to 'Destroy', member, :confirm => 'Are you sure?', :method => :delete %></td>
      </tr>
  <% end %>
</table>

<br/>

<%= link_to 'New member', new_member_path %>